

//
// Created by Lenovo on 2025/6/15.
//
#ifndef COURSE_DESIGN_STATS_H
#define COURSE_DESIGN_STATS_H

#include <string>
#include <vector>
#include "Product.h"
using namespace std;



class Stats {
private:
    vector<Product*> sortedProducts; // 鎴愬憳鍙橀噺
    Manager* manager; //  Manager 鎸囬拡
public:
    //  鏋勯€犲嚱鏁?
    Stats(Manager* mgr) : manager(mgr) {}               // 浠?Manager 鍒濆鍖?
    void sortPrice();      // 鎸変环鏍兼帓搴?
    void sortQuantity();   // 鎸夊簱瀛樻帓搴?
    void sortManufacturer(); // 鎸夊埗閫犲晢鎺掑簭

    void printProducts();  // 鎵撳嵃鍟嗗搧淇℃伅

    int getProductsNumber(); // 鑾峰彇鍟嗗搧鏁伴噺

};


#endif //COURSE_DESIGN_STATS_H
#ifndef UNTITLED8_STATS_H
#define UNTITLED8_STATS_H

#endif //UNTITLED8_STATS_H
